package mumu.android.app;

import mumu.android.R;
import mumu.android.lib.tool.MLog;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

public class event2 extends Activity {

	LinearLayout ly_zlib_blue;
	LinearLayout ly_zlib_red;
	LinearLayout ly_zlib_orange;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.event2);
	
		ly_zlib_blue=(LinearLayout)findViewById(R.id.ly_zlib1);
		ly_zlib_red=(LinearLayout)findViewById(R.id.ly_zlib2);
		ly_zlib_orange=(LinearLayout)findViewById(R.id.ly_zlib3);


		ly_zlib_blue.setOnTouchListener(new OnTouchListener() {

			@Override
			public boolean onTouch(View v, MotionEvent event) {
				MLog.i("dd", "blue_onTouchEventx:"+event.getX());
				return false;
			}
		});
		ly_zlib_red.setOnTouchListener(new OnTouchListener() {

			@Override
			public boolean onTouch(View v, MotionEvent event) {
				MLog.i("dd", "red_onTouchEventx:"+event.getX());
				return false;
			}
		});
		ly_zlib_orange.setOnTouchListener(new OnTouchListener() {

			@Override
			public boolean onTouch(View v, MotionEvent event) {
				MLog.i("dd", "orange_onTouchEvent:x:"+event.getX());
				return false;
			}
		});
		ly_zlib_orange.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				MLog.i("dd", "orange_onClick");
			}
		});
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		
		MLog.i("dd", "Activity_onTouchEventx:"+event.getX());
		return true;
		//return super.onTouchEvent(event);
	}
}

//	zLib_btn btn_5 = (zLib_btn) findViewById(R.id.btn_5);
//btn_5.setOnTouchListener(new OnTouchListener() {
//
//			@Override
//			public boolean onTouch(View v, MotionEvent event) {
//				MLog.i("dd", "setOnTouchListener_onTouchEvent");
//				return true;
//			}
//		});
//
//		btn_5.setOnClickListener(new OnClickListener() {
//
//			@Override
//			public void onClick(View v) {
//				MLog.i("dd", "setOnClickListener_onClick");
//			}
//		});
